﻿#if USE_UNI_LUA
using LuaAPI = UniLua.Lua;
using RealStatePtr = UniLua.ILuaState;
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
#else
using LuaAPI = XLua.LuaDLL.Lua;
using RealStatePtr = System.IntPtr;
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
#endif

using XLua;
using System.Collections.Generic;


namespace XLua.CSObjectWrap
{
    using Utils = XLua.Utils;
    public class UnityProfilingProfilerRecorderWrap 
    {
        public static void __Register(RealStatePtr L)
        {
			ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			System.Type type = typeof(Unity.Profiling.ProfilerRecorder);
			Utils.BeginObjectRegister(type, L, translator, 0, 7, 11, 0);
			
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "Start", _m_Start);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "Stop", _m_Stop);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "Reset", _m_Reset);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetSample", _m_GetSample);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "CopyTo", _m_CopyTo);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToArray", _m_ToArray);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "Dispose", _m_Dispose);
			
			
			Utils.RegisterFunc(L, Utils.GETTER_IDX, "Valid", _g_get_Valid);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "DataType", _g_get_DataType);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "UnitType", _g_get_UnitType);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "CurrentValue", _g_get_CurrentValue);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "CurrentValueAsDouble", _g_get_CurrentValueAsDouble);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "LastValue", _g_get_LastValue);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "LastValueAsDouble", _g_get_LastValueAsDouble);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "Capacity", _g_get_Capacity);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "Count", _g_get_Count);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "IsRunning", _g_get_IsRunning);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "WrappedAround", _g_get_WrappedAround);
            
			
			
			Utils.EndObjectRegister(type, L, translator, null, null,
			    null, null, null);

		    Utils.BeginClassRegister(type, L, __CreateInstance, 2, 0, 0);
			Utils.RegisterFunc(L, Utils.CLS_IDX, "StartNew", _m_StartNew_xlua_st_);
            
			
            
			
			
			
			Utils.EndClassRegister(type, L, translator);
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int __CreateInstance(RealStatePtr L)
        {
            
			try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
				if(LuaAPI.lua_gettop(L) == 4 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && translator.Assignable<Unity.Profiling.ProfilerRecorderOptions>(L, 4))
				{
					string _statName = LuaAPI.lua_tostring(L, 2);
					int _capacity = LuaAPI.xlua_tointeger(L, 3);
					Unity.Profiling.ProfilerRecorderOptions _options;translator.Get(L, 4, out _options);
					
					var gen_ret = new Unity.Profiling.ProfilerRecorder(_statName, _capacity, _options);
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				if(LuaAPI.lua_gettop(L) == 3 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3))
				{
					string _statName = LuaAPI.lua_tostring(L, 2);
					int _capacity = LuaAPI.xlua_tointeger(L, 3);
					
					var gen_ret = new Unity.Profiling.ProfilerRecorder(_statName, _capacity);
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				if(LuaAPI.lua_gettop(L) == 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING))
				{
					string _statName = LuaAPI.lua_tostring(L, 2);
					
					var gen_ret = new Unity.Profiling.ProfilerRecorder(_statName);
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				if(LuaAPI.lua_gettop(L) == 5 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && translator.Assignable<Unity.Profiling.ProfilerRecorderOptions>(L, 5))
				{
					string _categoryName = LuaAPI.lua_tostring(L, 2);
					string _statName = LuaAPI.lua_tostring(L, 3);
					int _capacity = LuaAPI.xlua_tointeger(L, 4);
					Unity.Profiling.ProfilerRecorderOptions _options;translator.Get(L, 5, out _options);
					
					var gen_ret = new Unity.Profiling.ProfilerRecorder(_categoryName, _statName, _capacity, _options);
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				if(LuaAPI.lua_gettop(L) == 4 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4))
				{
					string _categoryName = LuaAPI.lua_tostring(L, 2);
					string _statName = LuaAPI.lua_tostring(L, 3);
					int _capacity = LuaAPI.xlua_tointeger(L, 4);
					
					var gen_ret = new Unity.Profiling.ProfilerRecorder(_categoryName, _statName, _capacity);
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				if(LuaAPI.lua_gettop(L) == 3 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING))
				{
					string _categoryName = LuaAPI.lua_tostring(L, 2);
					string _statName = LuaAPI.lua_tostring(L, 3);
					
					var gen_ret = new Unity.Profiling.ProfilerRecorder(_categoryName, _statName);
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				if(LuaAPI.lua_gettop(L) == 5 && translator.Assignable<Unity.Profiling.ProfilerCategory>(L, 2) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && translator.Assignable<Unity.Profiling.ProfilerRecorderOptions>(L, 5))
				{
					Unity.Profiling.ProfilerCategory _category;translator.Get(L, 2, out _category);
					string _statName = LuaAPI.lua_tostring(L, 3);
					int _capacity = LuaAPI.xlua_tointeger(L, 4);
					Unity.Profiling.ProfilerRecorderOptions _options;translator.Get(L, 5, out _options);
					
					var gen_ret = new Unity.Profiling.ProfilerRecorder(_category, _statName, _capacity, _options);
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				if(LuaAPI.lua_gettop(L) == 4 && translator.Assignable<Unity.Profiling.ProfilerCategory>(L, 2) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4))
				{
					Unity.Profiling.ProfilerCategory _category;translator.Get(L, 2, out _category);
					string _statName = LuaAPI.lua_tostring(L, 3);
					int _capacity = LuaAPI.xlua_tointeger(L, 4);
					
					var gen_ret = new Unity.Profiling.ProfilerRecorder(_category, _statName, _capacity);
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				if(LuaAPI.lua_gettop(L) == 3 && translator.Assignable<Unity.Profiling.ProfilerCategory>(L, 2) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING))
				{
					Unity.Profiling.ProfilerCategory _category;translator.Get(L, 2, out _category);
					string _statName = LuaAPI.lua_tostring(L, 3);
					
					var gen_ret = new Unity.Profiling.ProfilerRecorder(_category, _statName);
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				if(LuaAPI.lua_gettop(L) == 4 && translator.Assignable<Unity.Profiling.ProfilerMarker>(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && translator.Assignable<Unity.Profiling.ProfilerRecorderOptions>(L, 4))
				{
					Unity.Profiling.ProfilerMarker _marker;translator.Get(L, 2, out _marker);
					int _capacity = LuaAPI.xlua_tointeger(L, 3);
					Unity.Profiling.ProfilerRecorderOptions _options;translator.Get(L, 4, out _options);
					
					var gen_ret = new Unity.Profiling.ProfilerRecorder(_marker, _capacity, _options);
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				if(LuaAPI.lua_gettop(L) == 3 && translator.Assignable<Unity.Profiling.ProfilerMarker>(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3))
				{
					Unity.Profiling.ProfilerMarker _marker;translator.Get(L, 2, out _marker);
					int _capacity = LuaAPI.xlua_tointeger(L, 3);
					
					var gen_ret = new Unity.Profiling.ProfilerRecorder(_marker, _capacity);
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				if(LuaAPI.lua_gettop(L) == 2 && translator.Assignable<Unity.Profiling.ProfilerMarker>(L, 2))
				{
					Unity.Profiling.ProfilerMarker _marker;translator.Get(L, 2, out _marker);
					
					var gen_ret = new Unity.Profiling.ProfilerRecorder(_marker);
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				if(LuaAPI.lua_gettop(L) == 4 && translator.Assignable<Unity.Profiling.LowLevel.Unsafe.ProfilerRecorderHandle>(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && translator.Assignable<Unity.Profiling.ProfilerRecorderOptions>(L, 4))
				{
					Unity.Profiling.LowLevel.Unsafe.ProfilerRecorderHandle _statHandle;translator.Get(L, 2, out _statHandle);
					int _capacity = LuaAPI.xlua_tointeger(L, 3);
					Unity.Profiling.ProfilerRecorderOptions _options;translator.Get(L, 4, out _options);
					
					var gen_ret = new Unity.Profiling.ProfilerRecorder(_statHandle, _capacity, _options);
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				if(LuaAPI.lua_gettop(L) == 3 && translator.Assignable<Unity.Profiling.LowLevel.Unsafe.ProfilerRecorderHandle>(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3))
				{
					Unity.Profiling.LowLevel.Unsafe.ProfilerRecorderHandle _statHandle;translator.Get(L, 2, out _statHandle);
					int _capacity = LuaAPI.xlua_tointeger(L, 3);
					
					var gen_ret = new Unity.Profiling.ProfilerRecorder(_statHandle, _capacity);
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				if(LuaAPI.lua_gettop(L) == 2 && translator.Assignable<Unity.Profiling.LowLevel.Unsafe.ProfilerRecorderHandle>(L, 2))
				{
					Unity.Profiling.LowLevel.Unsafe.ProfilerRecorderHandle _statHandle;translator.Get(L, 2, out _statHandle);
					
					var gen_ret = new Unity.Profiling.ProfilerRecorder(_statHandle);
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				
				if (LuaAPI.lua_gettop(L) == 1)
				{
				    translator.Push(L, default(Unity.Profiling.ProfilerRecorder));
			        return 1;
				}
				
			}
			catch(System.Exception gen_e) {
				return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
			}
            return LuaAPI.luaL_error(L, "invalid arguments to Unity.Profiling.ProfilerRecorder constructor!");
            
        }
        
		
        
		
        
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_StartNew_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 3&& translator.Assignable<Unity.Profiling.ProfilerMarker>(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable<Unity.Profiling.ProfilerRecorderOptions>(L, 3)) 
                {
                    Unity.Profiling.ProfilerMarker _marker;translator.Get(L, 1, out _marker);
                    int _capacity = LuaAPI.xlua_tointeger(L, 2);
                    Unity.Profiling.ProfilerRecorderOptions _options;translator.Get(L, 3, out _options);
                    
                        var gen_ret = Unity.Profiling.ProfilerRecorder.StartNew( _marker, _capacity, _options );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                if(gen_param_count == 2&& translator.Assignable<Unity.Profiling.ProfilerMarker>(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) 
                {
                    Unity.Profiling.ProfilerMarker _marker;translator.Get(L, 1, out _marker);
                    int _capacity = LuaAPI.xlua_tointeger(L, 2);
                    
                        var gen_ret = Unity.Profiling.ProfilerRecorder.StartNew( _marker, _capacity );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                if(gen_param_count == 1&& translator.Assignable<Unity.Profiling.ProfilerMarker>(L, 1)) 
                {
                    Unity.Profiling.ProfilerMarker _marker;translator.Get(L, 1, out _marker);
                    
                        var gen_ret = Unity.Profiling.ProfilerRecorder.StartNew( _marker );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                if(gen_param_count == 4&& translator.Assignable<Unity.Profiling.ProfilerCategory>(L, 1)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable<Unity.Profiling.ProfilerRecorderOptions>(L, 4)) 
                {
                    Unity.Profiling.ProfilerCategory _category;translator.Get(L, 1, out _category);
                    string _statName = LuaAPI.lua_tostring(L, 2);
                    int _capacity = LuaAPI.xlua_tointeger(L, 3);
                    Unity.Profiling.ProfilerRecorderOptions _options;translator.Get(L, 4, out _options);
                    
                        var gen_ret = Unity.Profiling.ProfilerRecorder.StartNew( _category, _statName, _capacity, _options );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                if(gen_param_count == 3&& translator.Assignable<Unity.Profiling.ProfilerCategory>(L, 1)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) 
                {
                    Unity.Profiling.ProfilerCategory _category;translator.Get(L, 1, out _category);
                    string _statName = LuaAPI.lua_tostring(L, 2);
                    int _capacity = LuaAPI.xlua_tointeger(L, 3);
                    
                        var gen_ret = Unity.Profiling.ProfilerRecorder.StartNew( _category, _statName, _capacity );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                if(gen_param_count == 2&& translator.Assignable<Unity.Profiling.ProfilerCategory>(L, 1)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) 
                {
                    Unity.Profiling.ProfilerCategory _category;translator.Get(L, 1, out _category);
                    string _statName = LuaAPI.lua_tostring(L, 2);
                    
                        var gen_ret = Unity.Profiling.ProfilerRecorder.StartNew( _category, _statName );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to Unity.Profiling.ProfilerRecorder.StartNew!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_Start(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Unity.Profiling.ProfilerRecorder gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
            
            
                
                {
                    
                    gen_to_be_invoked.Start(  );
                    
                    
                        translator.Update(L, 1, gen_to_be_invoked);
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_Stop(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Unity.Profiling.ProfilerRecorder gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
            
            
                
                {
                    
                    gen_to_be_invoked.Stop(  );
                    
                    
                        translator.Update(L, 1, gen_to_be_invoked);
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_Reset(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Unity.Profiling.ProfilerRecorder gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
            
            
                
                {
                    
                    gen_to_be_invoked.Reset(  );
                    
                    
                        translator.Update(L, 1, gen_to_be_invoked);
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetSample(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Unity.Profiling.ProfilerRecorder gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
            
            
                
                {
                    int _index = LuaAPI.xlua_tointeger(L, 2);
                    
                        var gen_ret = gen_to_be_invoked.GetSample( _index );
                        translator.Push(L, gen_ret);
                    
                    
                        translator.Update(L, 1, gen_to_be_invoked);
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_CopyTo(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Unity.Profiling.ProfilerRecorder gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 3&& translator.Assignable<System.Collections.Generic.List<Unity.Profiling.ProfilerRecorderSample>>(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) 
                {
                    System.Collections.Generic.List<Unity.Profiling.ProfilerRecorderSample> _outSamples = (System.Collections.Generic.List<Unity.Profiling.ProfilerRecorderSample>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List<Unity.Profiling.ProfilerRecorderSample>));
                    bool _reset = LuaAPI.lua_toboolean(L, 3);
                    
                    gen_to_be_invoked.CopyTo( _outSamples, _reset );
                    
                    
                        translator.Update(L, 1, gen_to_be_invoked);
                    
                    
                    return 0;
                }
                if(gen_param_count == 2&& translator.Assignable<System.Collections.Generic.List<Unity.Profiling.ProfilerRecorderSample>>(L, 2)) 
                {
                    System.Collections.Generic.List<Unity.Profiling.ProfilerRecorderSample> _outSamples = (System.Collections.Generic.List<Unity.Profiling.ProfilerRecorderSample>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List<Unity.Profiling.ProfilerRecorderSample>));
                    
                    gen_to_be_invoked.CopyTo( _outSamples );
                    
                    
                        translator.Update(L, 1, gen_to_be_invoked);
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to Unity.Profiling.ProfilerRecorder.CopyTo!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_ToArray(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Unity.Profiling.ProfilerRecorder gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
            
            
                
                {
                    
                        var gen_ret = gen_to_be_invoked.ToArray(  );
                        translator.Push(L, gen_ret);
                    
                    
                        translator.Update(L, 1, gen_to_be_invoked);
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_Dispose(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Unity.Profiling.ProfilerRecorder gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
            
            
                
                {
                    
                    gen_to_be_invoked.Dispose(  );
                    
                    
                        translator.Update(L, 1, gen_to_be_invoked);
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            
        }
        
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_Valid(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Unity.Profiling.ProfilerRecorder gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
                LuaAPI.lua_pushboolean(L, gen_to_be_invoked.Valid);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_DataType(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Unity.Profiling.ProfilerRecorder gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
                translator.PushUnityProfilingLowLevelProfilerMarkerDataType(L, gen_to_be_invoked.DataType);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_UnitType(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Unity.Profiling.ProfilerRecorder gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
                translator.PushUnityProfilingProfilerMarkerDataUnit(L, gen_to_be_invoked.UnitType);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_CurrentValue(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Unity.Profiling.ProfilerRecorder gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
                LuaAPI.lua_pushint64(L, gen_to_be_invoked.CurrentValue);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_CurrentValueAsDouble(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Unity.Profiling.ProfilerRecorder gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
                LuaAPI.lua_pushnumber(L, gen_to_be_invoked.CurrentValueAsDouble);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_LastValue(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Unity.Profiling.ProfilerRecorder gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
                LuaAPI.lua_pushint64(L, gen_to_be_invoked.LastValue);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_LastValueAsDouble(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Unity.Profiling.ProfilerRecorder gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
                LuaAPI.lua_pushnumber(L, gen_to_be_invoked.LastValueAsDouble);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_Capacity(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Unity.Profiling.ProfilerRecorder gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
                LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.Capacity);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_Count(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Unity.Profiling.ProfilerRecorder gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
                LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.Count);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_IsRunning(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Unity.Profiling.ProfilerRecorder gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
                LuaAPI.lua_pushboolean(L, gen_to_be_invoked.IsRunning);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_WrappedAround(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Unity.Profiling.ProfilerRecorder gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
                LuaAPI.lua_pushboolean(L, gen_to_be_invoked.WrappedAround);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
            }
            return 1;
        }
        
        
        
		
		
		
		
    }
}
